﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="edit_form_phep.aspx.cs" Inherits="edit_form_phep" %>
<%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxtoolkit" %>
<%@ Register Src="~/usercontrols/MesageBox.ascx" TagPrefix="MsgBox" TagName="MessageBox" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Form nghi phep</title>
    <link href="../styles/style.css" rel="stylesheet" type="text/css" /> 
    <link type="text/css" href="../css/smoothness/jquery-ui-1.8.11.custom.css" rel="stylesheet" />
     <link type="text/css" href="../css/validationEngine.jquery.css" rel="stylesheet" />
    <script src="../js/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script>
    <script src="../js/jquery.validationEngine.js" type="text/javascript"></script>
     <script type="text/javascript">
        $(function() {
        $("input[id$=txtFromDate]").datepicker({
                yearRange: "+0:+0",
                dateFormat: 'dd/mm/yy',
                changeMonth: true,
                changeYear: false
            });

            $("input[id$=txtToDate]").datepicker({
            yearRange: "+0:+0",
            changeMonth: true,
            dateFormat: 'dd/mm/yy',
            changeYear: false
            });
        });

       
    </script>
</head>
<body>
       <form id="form1" runat="server">

    <div class="wrapper">
         <div id="header">
		<h1 class="logo">
        <a href="index.aspx">
        	<img src="../images/logo.png" width="280" height="46" border="0" /></a>
        
        </h1>
         <div class="login_zone" >
                Username:<asp:Literal ID="lUsername" Text="" runat="server" />
                <br />
                 <asp:LinkButton ID="lnkLogout" runat="server" Text="Logout" onclick="lnkLogout_Click" 
                     /> | <a href="../nghiphep/users/change_pass.aspx">Change password</a>
        </div>
        </div>
     <div class="clear"></div>

<div id="nav">
      <div style="margin-bottom:20px;width:440px;float:left;">
              <ul class="breadcrumb">
        <li>
            <a href="index.aspx" title="Home">
         
                 <img src="../images/home.png" width="24" height="23" border="0" align="left" style="margin-top:2px;" class="home" />
      
            </a>
              
            </li>
            <li>
            <a href="index.aspx"   title="homepage">
                Homepage
                </a>
            </li>
            <li>
            <a href="list_nghiphep.aspx"   title="homepage">
                Danh sách nghỉ phép
                </a>
            </li>
            
        <li>
            
               Sửa thông tin nghỉ phép
            
       </li>
      
     </ul>
     </div>
        </div>
    <div class="main_content2">
       <div style="margin-top:-8px;">
             <img src="../images/nghiphep_header.png" width="900" height="77" />
           </div>
           <br /><br />
           
           <table style="margin-left:20px;line-height:150%;" width="600">
            <tr>
              <td align="left" colspan="2">
               
    
        <ajaxtoolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </ajaxtoolkit:ToolkitScriptManager>
       
    
                </td>
               
                </tr >
            <tr>
              <td align="left" valign="bottom" colspan="2">
                    Welcome
                    <asp:Literal ID="lFullName" runat="server"></asp:Literal>
                    </td>
               
                </tr >
            <tr  >
              <td  align="left" valign="bottom">
                    Phòng ban:
                    </td>
               
               <td align="left" style="height:30px;padding-top:2px;padding-bottom:10px;">
               
                    <asp:Literal ID="lPhongBan" runat="server"></asp:Literal>
            </td>
                </tr>
            <tr>
              <td  align="left" valign="bottom" >
                    Nghỉ từ ngày:</td>
               
               <td align="left">
                   <div style="width:217px; float:left;">
                    <asp:TextBox ID="txtFromDate" runat="server" CssClass="box2" TabIndex="1" 
                        Width="80px"></asp:TextBox>
                   </div>
                     <div style="width:103px; float:left;padding-top:10px;">
                        đến ngày:
                         
                     </div>
                     <div style="float:left;width:141px; text-align:left;">
                    <asp:TextBox ID="txtToDate" runat="server" CssClass="box2" TabIndex="1" 
                        Width="80px"></asp:TextBox>
                    
                        </div>
            </td>
               
                </tr>
            <tr>
              <td  align="left" valign="bottom" >
                    Thời gian nghỉ:</td>
               
               <td align="left" style="height:30px;padding-top:2px;">
               
                     <ajaxToolkit:ComboBox ID="cbNghi" runat="server" 
                    AutoPostBack="False" 
                    RenderMode="Inline"
                    AppendDataBoundItems="True"
                    BorderStyle="Solid" BorderWidth="1px" Height="24px"  TabIndex="4" 
                    Width="160px" AutoCompleteMode="SuggestAppend">
                                           </ajaxToolkit:ComboBox>
                &nbsp;<i>(Example: nghỉ 1/2 buổi sáng..)</i></td>
               
                </tr>
            <tr>
              <td  align="left" valign="bottom" >
                    Loại phép:</td>
               
               <td align="left" style="height:30px;padding-top:2px;">
               
                    <ajaxToolkit:ComboBox ID="cbLoaiPhep" runat="server" 
                    AutoPostBack="False" 
                    RenderMode="Inline"
                    AppendDataBoundItems="True"
                    BorderStyle="Solid" BorderWidth="1px" Height="24px"  TabIndex="4" 
                    Width="160px" AutoCompleteMode="SuggestAppend">
                                           </ajaxToolkit:ComboBox></td>
               
                </tr>
            <tr>
              <td align="left" valign="bottom">
                    Lý do:</td>
               
               <td  style="height:30px;padding-top:2px;padding-top:10px;">
               
                <asp:TextBox ID="txtLydo" runat="server" class="box2" Width="400px" />
                </td>
                </tr>
            <tr>
              <td align="left" valign="bottom">
                    &nbsp;</td>
               
               <td>
               
                   &nbsp;</td>
                </tr>
            <tr>
              <td align="left" valign="bottom">
                    &nbsp;</td>
               
               <td>
               
                   <asp:Button ID="btnUpdate" runat="server" CssClass="button white" Text="Update" 
                       Width="80px" onclick="btnUpdate_Click" />
               
                   <asp:Button ID="btnNghiPhepCu" runat="server" CssClass="button white" Text="Theo dõi nghỉ phép" 
                       Width="140px" onclick="btnNghiPhepCu_Click" />
                </td>
                </tr>
           </table>
    
        
        <div>
             <dx:ASPxPopupControl ID="msgBox" 
            runat="server"
            PopupHorizontalAlign="WindowCenter"
                 PopupVerticalAlign="WindowCenter" 
                 Height="119px" Width="380px" HeaderText="Info"
            >
                <ContentCollection>
<dx:PopupControlContentControl runat="server">
    <table style="width:100%;">
        <tr>
            <td>
                      <div style="float:left;margin-left:10px;width:34px;">
                 <img alt="" src="../images/msgbox_icon.png" />
                </div>
                 <div style="float:left;margin-left:10px;height:24px; margin-top:10px; font-size:12px;">
                 <dx:ASPxLabel ID="lMessage" 
                     runat="server">
                 </dx:ASPxLabel>
                 </div></td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                 <asp:Button ID="btnOK" runat="server" CssClass="button white" Font-Size="9pt" 
                       Text="OK" Width="63px" OnClick="btnOK_Click" /> </td>
        </tr>
    </table>
                    </dx:PopupControlContentControl>
</ContentCollection>
                <HeaderStyle HorizontalAlign="Left" />
            </dx:ASPxPopupControl>
             
                 
        </div>   
    
     </div>
     
     
</div>     
     </form>
</body>
</html>